package com.example.lbstest.impl;

import com.example.lbstest.mapper.ClassMapper;
import com.example.lbstest.pojo.Classes;
import com.example.lbstest.service.ClassMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ClassMapperServiceImpl implements ClassMapperService {
    @Autowired
    ClassMapper classMapper;
    @Override
    public List<Classes> selectClasses(String number) {
        List<Classes> classesList = classMapper.selectClasses(number);
        return classesList;
    }

    @Override
    public void createClass(Classes classes) {
        classMapper.createClass(classes);
    }

    @Override
    public Classes exitSameId(String id) {
        return classMapper.exitSameId(id);
    }

    @Override
    public int addClass(String id, String number,String time) {
        return classMapper.addClass(id,number,time);
    }

    @Override
    public int addOneNumber(String id) {
        return classMapper.addOneNumber(id);
    }

    @Override
    public Classes selectOneClass(String id) {
        return classMapper.selectOneClass(id);
    }

    @Override
    public List<Classes> selectClassListTeacher(String teacher_number) {
        return classMapper.selectClassListTeacher(teacher_number);
    }
}
